/**
 * output package name
 */
package com.kingdee.eas.fi.gl;

import java.util.Map;
import java.util.List;
import java.util.Iterator;
import com.kingdee.util.enums.IntEnum;

/**
 * output class name
 */
public class CashflowFlag extends IntEnum
{
    public static final int NONE_VALUE = 0;
    public static final int ONLY_CASHACCOUNT_VALUE = 1;
    public static final int ONLY_PNLACCOUNT_VALUE = 2;
    public static final int BOTH_CASH_AND_PNL_VALUE = 3;
    public static final int FINISHED_VALUE = 4;
    public static final int BOTHNONE_VALUE = 5;
    public static final int SPLITTED_VALUE = 6;

    public static final CashflowFlag NONE = new CashflowFlag("NONE", NONE_VALUE);
    public static final CashflowFlag ONLY_CASHACCOUNT = new CashflowFlag("ONLY_CASHACCOUNT", ONLY_CASHACCOUNT_VALUE);
    public static final CashflowFlag ONLY_PNLACCOUNT = new CashflowFlag("ONLY_PNLACCOUNT", ONLY_PNLACCOUNT_VALUE);
    public static final CashflowFlag BOTH_CASH_AND_PNL = new CashflowFlag("BOTH_CASH_AND_PNL", BOTH_CASH_AND_PNL_VALUE);
    public static final CashflowFlag FINISHED = new CashflowFlag("FINISHED", FINISHED_VALUE);
    public static final CashflowFlag BOTHNONE = new CashflowFlag("BOTHNONE", BOTHNONE_VALUE);
    public static final CashflowFlag SPLITTED = new CashflowFlag("SPLITTED", SPLITTED_VALUE);

    /**
     * construct function
     * @param integer cashflowFlag
     */
    private CashflowFlag(String name, int cashflowFlag)
    {
        super(name, cashflowFlag);
    }
    
    /**
     * getEnum function
     * @param String arguments
     */
    public static CashflowFlag getEnum(String cashflowFlag)
    {
        return (CashflowFlag)getEnum(CashflowFlag.class, cashflowFlag);
    }

    /**
     * getEnum function
     * @param String arguments
     */
    public static CashflowFlag getEnum(int cashflowFlag)
    {
        return (CashflowFlag)getEnum(CashflowFlag.class, cashflowFlag);
    }

    /**
     * getEnumMap function
     */
    public static Map getEnumMap()
    {
        return getEnumMap(CashflowFlag.class);
    }

    /**
     * getEnumList function
     */
    public static List getEnumList()
    {
         return getEnumList(CashflowFlag.class);
    }
    
    /**
     * getIterator function
     */
    public static Iterator iterator()
    {
         return iterator(CashflowFlag.class);
    }
}